package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 前端菜单对象 t_front_menu
 * 
 * @author kellen
 * @date 2024-04-17
 */
public class TFrontMenu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 菜单名称 */
    @Excel(name = "菜单名称")
    private String menuName;

    /** 图标 */
    @Excel(name = "图标")
    private String menuIcon;

    /** 是否显示，1-是，0否，default：1 */
    @Excel(name = "是否显示，1-是，0否，default：1")
    private Long isDisplay;

    /** 父级菜单 */
    @Excel(name = "父级菜单")
    private Long parentId;

    /** 页面地址 */
    @Excel(name = "页面地址")
    private String pageUrl;

    private String rootUrl;
    /**
     * 选中，1-是，0-否
     */
    private Integer active;
    private List<TFrontMenu> childs;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMenuName(String menuName) 
    {
        this.menuName = menuName;
    }

    public String getMenuName() 
    {
        return menuName;
    }
    public void setMenuIcon(String menuIcon) 
    {
        this.menuIcon = menuIcon;
    }

    public String getMenuIcon() 
    {
        return menuIcon;
    }
    public void setIsDisplay(Long isDisplay) 
    {
        this.isDisplay = isDisplay;
    }
    public Long getIsDisplay() 
    {
        return isDisplay;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setPageUrl(String pageUrl) 
    {
        this.pageUrl = pageUrl;
    }

    public String getPageUrl() 
    {
        return pageUrl;
    }

    public List<TFrontMenu> getChilds() {
        return childs;
    }

    public void setChilds(List<TFrontMenu> childs) {
        this.childs = childs;
    }

    public String getRootUrl() {
        return rootUrl;
    }

    public void setRootUrl(String rootUrl) {
        this.rootUrl = rootUrl;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("menuName", getMenuName())
            .append("menuIcon", getMenuIcon())
            .append("isDisplay", getIsDisplay())
            .append("parentId", getParentId())
            .append("pageUrl", getPageUrl())
            .toString();
    }
}
